{extend name="public/base" /}



{block name="title"}<title>后台首页</title>{/block}



{block name="pjax_container"}

<section class="content-header">

    <h1>后台首页</h1>

    <ol class="breadcrumb">

        <li class="active"><i class="fa fa-dashboard"></i> 后台首页</li>

    </ol>

</section>

<section class="content">

    <div class="alert alert-danger">

        <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
        <p>您好， 欢迎登陆</p>
    </div>

    

    <!--<div class="row">

        <div class="col-lg-6 col-sm-6 col-xs-12">

            <div class="small-box bg-yellow">

                <div class="inner"><h3>{$userTotal}</h3><p>{$Think.lang.user_num}</p></div>

                <div class="icon"><i class="fa fa-users"></i></div>

                <a href="{:url('User/index')}" class="small-box-footer">{$Think.lang.more} <i class="fa fa-arrow-circle-right"></i></a>

            </div>

        </div>

        <div class="col-lg-6 col-sm-6 col-xs-12">

            <div class="small-box bg-aqua">

                <div class="inner"><h3>{$userNear}</h3><p>{$Think.lang.new_user_num}</p></div>

                <div class="icon"><i class="fa fa-user-plus"></i></div>

                <a href="{:url('User/index')}" class="small-box-footer">{$Think.lang.more} <i class="fa fa-arrow-circle-right"></i></a>

            </div>

        </div>

        <div class="col-lg-7 col-sm-7 col-xs-12">

            <div class="box box-primary">

                <div class="box-header with-border">

                    <h3 class="box-title">{$Think.lang.login_30_count}</h3>

                </div>

                <div class="box-body">

                    <canvas id="login-line" height="312"></canvas>

                </div>

            </div>

        </div>

        <div class="col-lg-5 col-sm-5 col-xs-12">

            <div class="box box-primary">

                <div class="box-header">

                    <h3 class="box-title">{$Think.lang.login_new}</h3>

                </div>

                <div class="box-body no-padding">

                    <table class="table table-hover">

                        <tr>

                            <th>{$Think.lang.login_l_ip}</th>

                            <th>{$Think.lang.login_l_address}</th>

                            <th>{$Think.lang.login_l_time}</th>

                        </tr>

                        {volist name="loginLogList" id="vo"}

                        <tr>

                            <td><span class="label label-success">{$vo.ip}</span></td>

                            <td>{$vo.country} {$vo.province} {$vo.city} {$vo.district}</td>

                            <td>{$vo.create_time|time_line}</td>

                        </tr>

                        {/volist}

                    </table>

                </div>

            </div>

        </div>

        <div class="col-lg-6 col-sm-6 col-xs-12">

            <div class="box box-primary">

                <div class="box-header with-border">

                    <h3 class="box-title">{$Think.lang.user_l_group}</h3>

                </div>

                <div class="box-body">

                    <canvas id="user-pie" height="312"></canvas>

                </div>

            </div>

        </div>

        <div class="col-lg-6 col-sm-6 col-xs-12">

            <div class="box box-primary">

                <div class="box-header">

                    <h3 class="box-title">{$Think.lang.system_config}</h3>

                </div>

                <div class="box-body no-padding">

                    <table class="table table-hover">

                        {volist name="systemConfig" id="vo" }

                        <tr>

                            <td>{$key}：{$vo}</td>

                        </tr>

                        {/volist}

                    </table>

                </div>

            </div>

        </div>

        
    </div>-->

</section>

<script>

$(function () {

    var loginLogLineJson = {$loginLogLineJson};

    var loginline = document.getElementById('login-line').getContext('2d');

    new Chart(loginline, {

        type: 'line',

        data: loginLogLineJson,

        options: {

            responsive: true,

            maintainAspectRatio: false

        }

    });

    

    var groupPieJson = {$groupPieJson};

    var userpie = document.getElementById('user-pie').getContext('2d');

    new Chart(userpie, {

        type: 'pie',

        data: groupPieJson,

        options: {

            responsive: true,

            maintainAspectRatio: false

        }

    });

    

    {if condition=" $rest_login == 1 "}

    restlogin('{$rest_login_info}');   //登录超时

    {/if}

});

</script>

{/block}